package com.jeecg.gleave.service;
import com.jeecg.gleave.entity.GLeaveEntity;
import com.jeecg.student.entity.GStudentEntity;

import org.jeecgframework.core.common.service.CommonService;

import java.io.Serializable;

public interface GLeaveServiceI extends CommonService{
	
 	public void delete(GLeaveEntity entity) throws Exception;
 	
 	public Serializable save(GLeaveEntity entity) throws Exception;
 	
 	public void saveOrUpdate(GLeaveEntity entity) throws Exception;
 	
 	/**
     * 通过id
     * @param nmae
     * @param password
     * @return
     * @throws Exception
     */
    public GLeaveEntity getLeave(String id) throws Exception;
    
    /**
     * @param state
     * @return
     * @throws Exception
     */
    public Integer getLeaveCount(String state)throws Exception; 
}
